package com.bk.ouatadmin.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bk.ouatadmin.dao.ContentsDao;
import com.bk.ouatadmin.dto.ContentsDto;


@Service
public class ContentsService {
	
	@Autowired
	private ContentsDao contentsDao;

	public List<ContentsDto> list(ContentsDto contentsDto) {
		return contentsDao.list(contentsDto);
	}
	
	public int count(ContentsDto contentsDto) {
		return contentsDao.count(contentsDto);
	}
	
	public int insert(ContentsDto contentsDto) {
		contentsDao.insert(contentsDto);
		return contentsDto.getContents_id();
	}
}
